﻿@{
    ViewBag.Title = "UploadData";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div>
    <div class="row">
        <div class="col-md-12">
            <h2>Select data file with retrain dataset to upload, or use pre-uploaded data.</h2>
            <p>The dataset will be used to generated retrained model.</p>
        </div>
    </div>
    <div class="row">
        <form action="retrain" method="post" enctype="multipart/form-data">
            <div class="row">
                <div class="form-group col-md-8 col-md-offset-4">
                    <h4><input class="file" type="file" name="fileToUpload" id="fileToUpload" accept=".csv,.arff"></h4>
                </div>
            </div>
            <div class="row">
                <div class="col-md-7 col-md-offset-5">
                    <button type="submit" class="btn btn-primary">Upload to blob</button>
                </div>
            </div>
        </form>
    </div>
    <div class="row">
        <div class="col-md-7 col-md-offset-5">
            <a href="retrain" class="btn btn-primary" role="button">Use pre-uploaded data</a>
        </div>
    </div>
</div>


